package lg.minecraft.plugin.worldprotect;

/**
 * @author langle__
 * @version 1.0
 */
public enum WorldSettingType {
    PVP,
    //    shoot
    PLACE,
    DESTRUCTION,
    EXPLOSION,
    TNT,
    CREEPER,
    WITHER_DESTRUCTION,
    DRAGON_GRIEF,
    FLY,
    FLOW,
    LAVA_FLOW,
    TRAMPLE,
    DECAY,
    ICE_MELT,
    ICE_FORM,
    SNOW_FORM,
    SNOW_MELT,
    FIRE_SPREAD,
    DRAGON_EGG_TELEPORT,
    IGNITE,
    ITEM_PICKUP,
    ITEM_DROP,
    CONTAINER,
    ANVIL,
    TABLE,
    BEACON,
    CHORUS_TP,
    ENDER_PEARL,
    JOIN_WORLD,
    KEEP_EXP,
    KEEP_INV;

    public static WorldSettingType getValue(String name) {
        try {
            return WorldSettingType.valueOf(name);
        } catch (IllegalArgumentException e) {
            return null;
        }
    }

}
